//
//  ForumViewModel.h
//  MoXiProject
//
//  Created by 沈晨宇 on 2017/7/31.
//  Copyright © 2017年 周筱雯. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AllForumModel.h"
#import "ForumDisModel.h"
@interface ForumViewModel : NSObject
typedef enum {
    LoadData = 2,
    LoadMore
}LoadType;
@property (nonatomic,strong) NSMutableArray * allForumArrayList;
@property (nonatomic,strong) NSMutableArray * forumDisArrayList;
@property (nonatomic,assign) NSInteger page;

//发布论坛
- (RACSignal *)saveUserForumRequestParameter:(NSString *)userId title:(NSString *)title content:(NSString *)content;

//获取论坛接口
- (RACSignal *)forumListRequestParameter:(LoadType)loadType;

//论坛详情接口
- (RACSignal *)forumsDetailRequestParameter:(NSString *)forumId userId:(NSString *)userId;

////添加论坛评论接口
- (RACSignal *)addForumDiscussRequestParameter:(NSString *)forumId content:(NSString *)content userId:(NSString *)userId;

////论坛点赞接口
- (RACSignal *)saveForumThumbsRequestParameter:(NSString *)userId forumId:(NSString *)forumId;
@end
